import { createRouter, createWebHistory } from 'vue-router'
<<<<<<< HEAD


const routes = [

=======
import Day from '@/views/Day'
import Month from '@/views/Month'
import Year from '@/views/Year'


const routes = [{
        path: '/',
        name: 'day',
        component: Day
    },
    {
        path: '/month',
        name: 'month',
        component: () =>
            import ('../views/Month.vue')
    },
    {
        path: '/year',
        name: 'year',
        component: () =>
            import ('../views/Year.vue')
    },
    {
        path: '/:pathMatch(.*)*', //配置404找不到时的路由
        name: 'default',
        redirect: '/'
    }
>>>>>>> common

]

const router = createRouter({
    history: createWebHistory(process.env.BASE_URL),
    routes
})

export default router